using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class UIMapPlayerInput : MonoBehaviour
{
    public GameObject controller;

    public Vector3 defualt;
    public Vector3 position;

    public float maxY;
    public float minY;

    public int scrollSpeed;
    public int defualt_scrollSpeed;

    public void Start()
    {
        position = defualt;
        scrollSpeed = defualt_scrollSpeed;
    }
    private void Update()
    {
        position.y -= Input.GetAxis("Mouse ScrollWheel") * scrollSpeed;

        position.y = Mathf.Clamp(position.y, minY, maxY);
            controller.transform.position = position;
    }
}
